home *** CD-ROM | disk | FTP | other *** search
- On 22-mei-97 Ben Wyatt wrote:
-
- >The one thing which seems to be very hard to achieve in AMOS
- >is full screen, multidirectional, map based scrolling
- >SMOOTHLY. I would like to see this in the new AGA extension
- >(or any extension) more than anything else (apart from AGA!).
- >Perhaps similar to the Turbo (Plus) extension, with a Map bank
- >and Tile bank, but also commands to open and scroll the view
- >port... just a few examples:
-
- >Map Screen Open n,view_width,view_height,colours,mode,block_size
- > Open the screen. (block_size = 16 or 32)
-
- >Map Offset n,x,y
- > Move the view to x,y - Scroll the screen, or redraw it completely if
- > it's totally off the current view.
-
- >Map Scroll n,dx,dy
- > Relatively scroll the view by dx,dy pixels.
-
- >What do you all think? Would this be useful?
-
- If it would really make things faster, this would be _very_ useful.
-
- Maybe add some analytical functions, like =Map Screen, etc. (I don't know of
- any use for those, but you can be sure that someday, someone will need them).
-
- Another thing: I read on this list some time ago an optimisation tip for map
- based games, which was to store the map as many times as there are directions
- you can scroll in. The advantage being, that you can then lay out the map in
- memory in such a way that you have only to increase the pointer to read the
- next tile.
-
- So a scroll to the left would be done
- PTR=??? 'position on the map
- For Y=1 To HEIGHT
- Inc PTR
- TILE=Peek(PTR)
- _PASTE_TILE(X,Y,TILE)
- Next Y
-
- Rather than:
- For Y=1 To HEIGHT
- TILE=Peek(_START+X+Y*WIDTH)
- _PASTE_TILE(X,Y,TILE)
- Next Y
-
- The optimisation bit lies in the fact that you don't have much of a
- calculation to determine where to read the next tile from. I don't know if it
- works, as I have never tried it, but it seems genuine enough.
-
- How would you deal with such things in your proposed extension?
-
- (I bet it is all already in AMCAF :-) )
-
- --
- Branko Collin . |. .
- collin@xs4all.nl . . || ...
- http://www.xs4all.nl/~collin . ....||| .. ..
-
-
-